package com.itheima.mapper;

import com.itheima.pojo.Emp;
import com.itheima.pojo.LoginInfo;
import com.itheima.pojo.login.Dto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
    @Select("select id,emp.username,emp.name from emp where password = #{password} and username = #{username}")
    LoginInfo selectNameAndPassword(Dto dto);
}
